/**	@version	0.9
*	@author		Tomas Hubik
*/



#include "../AI_Tester/includes.h"
#include "../AI_Tester/init.h"
#include "gui.h"



int main( int argc, char *argv[] )
{
	//for memory leak detection
	//#ifdef _DEBUG
	//	_CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
	//#endif


	QApplication a( argc, argv );

	a.setWindowIcon( QIcon( "AI_Tester_Server.ico" ) );


	//loading of game parameters
	if ( !parameters::get_instance()->load_parameters( "parameters.ait" ) )
	{
		QMessageBox::critical( 0, "Parameters error", "Error occured when reading application's parameters file!" );
		return 1;
	}

	server_gui::get_instance()->create_gui();
	server_gui::get_instance()->g->show();

	return a.exec();
}
